@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
Container Management ::
@parent
@stop

@section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">Container list</li>
@stop

@section('content.main')

<p>{{ link_to_route('car_balance.container.create', 'Add new Container', null, array('class' => 'btn btn-info')) }}</p>


{{  $containers->links() }}

<table class="table table-bordered table-striped table-hover">
    <thead>
    <tr>
                <th>Id</th>
                <th>Container Apply</th>
                <th>Transport Start Date</th>
                <th>Transport End Date</th>
                <th>Fee</th>
                <th>Car Count</th>
        
        <th class="span2">Actions</th>
    </tr>
    </thead>
    <tbody>
    @foreach ($containers as $container)
    <tr>
        <td>{{  link_to_route('car_balance.container.show', $container->id, array($container->id), array()) }}</td>
        <td>{{  $container->container_apply }}</td>
        <td>{{  $container->transport_start_date }}</td>
        <td>{{  $container->transport_end_date }}</td>
        <td>{{  $container->fee }}</td>
        <td>{{  $container->car_count }}</td>


        <td>
            <a href="{{  route('car_balance.container.edit', $container->id) }}" class="btn btn-mini">Edit</a>
            <a href="{{  route('car_balance.container.delete', $container->id) }}" class="btn btn-mini btn-danger">Delete</a>
        </td>
    </tr>
    @endforeach
    </tbody>
</table>

{{  $containers->links() }}

@stop